﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using WebSimplicity.Data.Helpers;

namespace WebSimplicity.Data
{
    public interface IAccount
    {
    }

    [MetadataType(typeof(IAccount))]
    partial class Account : IAccount 
    {
        public void Create()
        {
            Entities db = new Entities(Config.GetConnection("Data.Model"));
            db.Accounts.AddObject(this);
            db.SaveChanges();
        }
    }
}
